package com.woniu.car.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author chestnuts tlx
 * @create 2021/7/1 17:52
 */
@Data
public class AddCategoryChildParam {
    @ApiModelProperty(value = "分类名",required = true)
    @NotEmpty(message="分类名不能为空")
    private List<String> categoryNames;

    /**
     * 分类父级编号
     */
    @ApiModelProperty(value = "该分类的父级id",example = "0")
    @NotNull(message="分类父级id不能为空")
    private Integer parentId;


}
